package com.jprocms.module.cms.convert.globalconfig;

import com.jprocms.module.cms.api.dto.GlobalConfigBaseVO;
import com.jprocms.module.cms.api.dto.GlobalConfigRespVO;
import com.jprocms.module.cms.controller.admin.globalconfig.vo.GlobalConfigUpdateReqVO;
import com.jprocms.module.cms.dal.dataobject.globalconfig.GlobalConfigDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 系统配置 Convert
 *
 * @author jprocms
 */
@Mapper
public interface GlobalConfigConvert {

    GlobalConfigConvert INSTANCE = Mappers.getMapper(GlobalConfigConvert.class);

    GlobalConfigDO convert(GlobalConfigUpdateReqVO bean);

    GlobalConfigUpdateReqVO convert(GlobalConfigBaseVO bean);

    GlobalConfigRespVO convert(GlobalConfigDO bean);

}
